package com.example.nit.service;

import com.example.nit.bean.AllCategory;
import com.example.nit.mapper.AllCategoryMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author 杨铭
 * 2022/12/1,11:11
 */
@Service
@Transactional
public class AllCategoryServiceImpl {
    @Autowired
    AllCategoryMapper allCategoryMapper;

    public List<AllCategory> queryAll() {
        return allCategoryMapper.selectList(null);
    }

}
